﻿using Clothes.BLL;
using Clothes.IBLL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace YongHu_UI
{
    public partial class product : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            CLDressIBLL dressIBLL = new CLDressBLL();
            Repeater1.DataSource = dressIBLL.SelctOrderByBLL();
            Repeater1.DataBind();
            int id =Convert.ToInt32(Request.QueryString["TypeId"]);
            if (id==1)
            {
                Repeater1.DataSource = dressIBLL.SelecrLei(1);
                Repeater1.DataBind();
            }
            if (id==2)
            {
                Repeater1.DataSource = dressIBLL.SelecrLei(2);
                Repeater1.DataBind();
            }
            if (id == 3)
            {
                Repeater1.DataSource = dressIBLL.SelecrLei(3);
                Repeater1.DataBind();
            }
                
        }
    }
}